<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>koa-mock-cors-test</title>
</head>

<body>
    <p>cors test</p>
    <script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
    <script type="text/javascript">
        $.ajax({
            url: 'http://localhost:4000/api/users/userId',
            success: function (data) {
              console.log(data)
            }
        })
    </script>
</body>

</html>